import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-10-18
 * Time:11:56
 */
public class Test {
    public static void main(String[] args) {
    }
    public static void main1(String[] args) {
        LinkedList<Integer> linkedList=new LinkedList<>();
        linkedList.add(1);
        linkedList.add(2);
        linkedList.add(3);
        System.out.println(linkedList);
        Iterator<Integer> integers=linkedList.iterator();
        while(integers.hasNext()){
            System.out.print(integers.next()+" ");
            System.out.println();
        }
        Stack<Integer> stack=new Stack<>();
        int ret=stack.push(2);
        System.out.println(ret);
    }
    //括号
    //左括号多
    //右括号多
    //左右括号次序不匹配

}
